/**
 * @description 用户token 存储获取
 * @author BBQ
 */

const KEY = "USER_TOKEN";

export function setToken(token: string) {
  localStorage.setItem(KEY, token);
}

export function setCustom(key: string, value: string) {
  localStorage.setItem(key, value);
}

export function getCustom(key: string) {
  return localStorage.getItem(key);
}

export function getToken() {
  return localStorage.getItem(KEY);
}

export function removeToken() {
  localStorage.removeItem(KEY);
}
